﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yq.WebModel.Sys
{
    public class Team : yq.Model.Logic.TeamList
    {
        private string _AdminName;

        /// <summary>
        /// 管理员名称
        /// </summary>
        public string AdminName
        {
            get
            {
                if (string.IsNullOrEmpty(_AdminName))
                {
                    var user = yq.Model.Logic.UserAccount.Load(this.AdminId);

                    if (user.IsLoad)
                    {
                        _AdminName = yq.Model.Logic.UserAccount.Load(this.AdminId).NickName;
                    }
                    else
                    {
                        _AdminName = "未设置";
                    }
                }

                return _AdminName;
            }
        }


    }
}
